const http  = require("../../http/http")
Page({
  data: {
    // pic: "",
    // title: "",
    // slogo: ""
    movie:[]
  },
  onLoad: function (options) {
    var { id } = options;
    var url = `http://localhost:4000/api/subject?id=${id}`
    http({
      url,
      success: res => {
        // var { slogo, pic, title } = res.data;
        // console.log(res)
        // this.setData({
        //   pic,
        //   title,
        //   slogo
        // })
        var movie = res.data
        console.log(movie)
        this.setData({
          movie
        })
      }
    })
  }
})